<template>
  <article class="my-permissions">
    <SysResourceBindPermission :checked-list="permissionList" :read-only="true"></SysResourceBindPermission>
  </article>
</template>

<script lang="ts" setup>
import { selectResourceIdListByRoleCode } from "@/views/AuthTbRole/httpApi";
import SysResourceBindPermission from "@/views/AuthTbRole/subviews/SysResourceBindPermission.vue"
import { SlashAppContext } from "slash-admin";
import { onMounted, ref } from "vue";
import { selectCurrentUserPermission } from "./httpApi";

const permissionList = ref<string[]>([])

onMounted(async () => {
  const res = await selectCurrentUserPermission(null)
  if (res.code == 200) {
    permissionList.value = res.data.map(item => item.id)
  }
})
</script>

<style lang="scss" scoped>
</style>